<?php

namespace app\api\controller;

use think\Controller;

class View extends Controller
{

	public function index()
	{
		// if (request()->root(true) == 'http://www.admin.com') {
		// 	$this->redirect('/index');
		// }
		return $this->fetch('web/index.html');
	}

	public function test() 
	{
		return json(['code'=> 1, 'msg' => '', 'data' => [1,23,3]]);
	}
	
}